package cn.wk.user.service;

import cn.wk.basic.exception.DiyException;
import cn.wk.basic.service.IBaseService;
import cn.wk.user.domain.User;

public interface IUserService extends IBaseService<User> {
    /**
     * 根据手机号进行业务判断是否重复
     * @param phone
     * @throws DiyException
     */
    void checkPhone(String phone) throws DiyException;

    /**
     * 通过logininfoId获取user
     * @param logininfoId
     * @return
     */
    User findByLogininfoId(Long logininfoId);
}
